package com.qs.security.mapper;

import com.qs.security.domain.SysRole;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select("SELECT t1.* from sys_role t1 " +
            " inner join sys_user_role t2 " +
            " on t1.id=t2.rid " +
            " where t2.uid=#{uid} ")
    List<SysRole> findByUid(String uid);
}
